package com.itheima.entity;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Message implements Serializable {
    /** 消息主键id */
    private Integer id;

    /** 消息内容 */
    private String msg;

    /** 消息状态 1:已读 2:未读 */
    private Integer status;

    /** 发送时间 */
    private Date sendTime;

    /** 消息来源id(谁发的) */
    private Integer fromId;

    /** 消息送达id(发给谁) */
    private Integer toId;

    private static final long serialVersionUID = 1L;
}